<?php 
$cls_eng = '';
$cls_vie = '';
if($site_lang == 'eng') {
	$cls_eng = 'class="active"';
} else {
	$cls_vie = 'class="active"';
}

$controller = $this->params['controller'];
$action = $this->params['action'];
$pass_0 = isset($this->params['pass'][0])?$this->params['pass'][0]:'';
$cls_hotro = 'off';
if($action=='view' && $pass_0=='ho_tro') {
	$cls_hotro = 'on';
}

$cls_lienhe = 'off';
if($action=='view' && $pass_0=='lien_he') {
	$cls_lienhe = 'on';
}

$cls_home = 'off';
if($controller=='home') {
	$cls_home = 'on';
}

$cls_dichvu = 'off';
echo stripos('dv_', $pass_0);
if(($controller=='cms_pages' && $action=='index') || stripos($pass_0, 'dv_')!==false) {
	$cls_dichvu = 'on';	
}
?>
<div id="header">
	<img src="<?php echo $this->webroot;?>img/frontend/logo.png" alt="Trans Green Express" onclick="window.location.href='<?php echo $frontend_url;?>'" id="logo"/>
	<span class="right">		 
		<img src="<?php echo $this->webroot;?>img/eng.png"/>&nbsp;<a <?php echo $cls_eng; ?> href="<?php echo Configure::read('frontend.url');?>home/change_language/eng"><?php __('header_english');?></a> -
		<img src="<?php echo $this->webroot;?>img/vie.png"/>&nbsp;<a <?php echo $cls_vie; ?> href="<?php echo Configure::read('frontend.url');?>home/change_language/vie"><?php __('header_vietnamese');?></a>
	</span>
</div>

<table id="topmenu" border="0" cellpadding="0" cellspacing="0" align="center">
	<tbody>
		<tr>	
			<td class="<?php echo $cls_home;?>" width="11%"><a href="<?php echo $frontend_url; ?>"><?php __('menu_home');?></a></td>
			<td class="<?php echo $cls_dichvu;?>" width="11%"><a href="<?php echo $frontend_url; ?>cms_pages/"><?php __('menu_service');?></a></td>
			<td class="<?php echo $cls_hotro;?>" width="11%"><a href="<?php echo $frontend_url; ?>cms_pages/view/ho_tro"><?php __('menu_support');?></a></td>
			<td class="<?php echo $cls_lienhe;?>" width="11%"><a href="<?php echo $frontend_url; ?>cms_pages/view/lien_he"><?php __('menu_contact');?></a></td>
			<td class="off" id="timer" width="28%"></td>
			<td class="off" style="margin-right: 5px">
				<form action="<?php echo $frontend_url;?>transfer_orders" method="post">
					<input id="searchbox" name="data[TransferOrder][code]" value="<?php __('header_search_order');?>" onblur="this.value='<?php __('header_search_order');?>'" onfocus="this.value='';" />
				</form>				
			</td>
		</tr>		
	</tbody>
</table>